home *** CD-ROM | disk | FTP | other *** search
/ PC Action 1998 November / PC Action Issue 71 (Xenia) (Novembre 1998).iso / CD_INST.TXT < prev    next >
Text File  |  1998-09-26  |  76KB  |  1,568 lines

  1. Installing Slackware Linux
  2.  
  3. This document covers installation of the Slackware (R) distribution of
  4. the Linux operating system from the Official Slackware (R) CDROM.
  5.  
  6.  
  7. 1.  Introduction
  8.  
  9. Linux is a multiuser, multitasking operating system that was
  10. developed by Linus Torvalds and hundreds of volunteers around the
  11. world working over the Internet.  
  12.  
  13. The Linux operating system now runs on several machine architectures,
  14. including Intel 80x86, Sparc, 68K, PowerPC, and DEC Alpha.  The
  15. Slackware distribution of Linux runs on Intel (and compatible) 386,
  16. 486, Pentium, Pentium Pro, and Pentium II based PCs.  Linux is modeled
  17. after the UNIX (R) operating system.  The Slackware distribution
  18. contains a full program development system with support for C, C++,
  19. Fortran-77, LISP, and other languages, full TCP/IP networking with NFS,
  20. SLIP, PPP, a full implementation of the X Window System, and much more. 
  21.  
  22.  
  23. 1.1.  Sources of Documentation
  24.  
  25. If you're new to Slackware, you'll be happy to know there is a *lot*
  26. of documentation and help available both on the Internet and on the
  27. CDROM itself.
  28.  
  29. One of the primary sources of Linux information is a collection of
  30. documents known as the "Linux HOWTOs."  You can find these on the
  31. Internet at sunsite.unc.edu, in the /pub/Linux/docs/HOWTO directory.
  32.  
  33. Other useful documentation at that site includes:
  34.  
  35. /pub/Linux/docs/FAQ  -- answers to Frequently Asked Questions about Linux
  36.  
  37. /pub/Linux/docs/LDP/ -- Manuals written by the Linux Documentation Project.
  38.  
  39. /pub/Linux/docs/LDP/install-guide -- Matt Welsh's "Linux Installation and
  40.                         Getting Started" book.  Although the installation
  41.                         information contained is a little bit dated, it's
  42.                         still filled with useful information.  If you're
  43.                         unfamiliar with UNIX, you'll find this guide to
  44.                         be a handy introduction.
  45.  
  46. Of course, these documents are also available on the Slackware CDROM
  47. in the /docs directory, or on ftp.CDROM.com in /pub/linux/slackware/docs.
  48.  
  49.  
  50. 2.  Hardware Requirements
  51.  
  52. Most PC hardware will work fine with Slackware, but some Plug-and-Play
  53. devices can be tricky to set up.  In some cases you can work around this
  54. by letting DOS initialize the card and then starting Slackware with the
  55. Loadlin utility.  Setting the computer's BIOS to configure Plug-and-Play
  56. cards also may help.
  57.  
  58. Here's a basic list of what you'll need to install Slackware:
  59.  
  60. Eight megabytes (8MB) or more of RAM.  If you have less than 8
  61. megabytes, we strongly suggest adding some additional RAM.  You can 
  62. also try some of the procedures described in the LOWMEM.TXT file on
  63. the first CDROM.  If you have eight or more megabytes of RAM, you'll be
  64. just fine.
  65.  
  66. You also will need some disk space to install Slackware.  For a
  67. complete installation, you'll probably want to devote a 500 MB or
  68. larger partition completely to Slackware.  You can make a smaller
  69. subset of Slackware fit into as little as 20 MB, although an average
  70. installation uses around 200 to 350MB.  The amount of disk space
  71. required varies dramatically depending on the amount of software
  72. you've chosen to install, the number of users on your machine, and
  73. the amount of swap space you've given Slackware.  If you haven't
  74. installed Slackware before, you may have to experiment.  If you've
  75. got the drive space, again, more is going to be better than not
  76. enough.  Also, you can always install only the first software set
  77. (the A series containing only the basic system utilities) and then
  78. install more software later once your system is running.
  79.  
  80. If you use SCSI, Slackware supports most SCSI controllers.  Check the
  81. list of bootdisks in the bootdsks.144/README.TXT file to see if
  82. there's a bootdisk for your controller.  You also might consult the
  83. SCSI-HOWTO for specific information about your controller.
  84.  
  85. To install from the CDROM, you'll need a supported CDROM drive.  Again,
  86. check the bootdsks.144/README.TXT file to see if your drive is
  87. listed.  If it's not, you still have an excellent chance of finding a
  88. bootdisk through trial and error that works with it anyway, since
  89. many CDROM drives sold by brand-X companies contain electronics
  90. manufactured by one of the companies that make a supported drive.
  91. Also, more and more drives made today use the ATAPI/IDE standard --
  92. these drives will all work fine under Slackware.
  93.  
  94.  
  95. 3.  Slackware Space Requirements
  96.  
  97. Slackware divides the installable software into categories.  (in the
  98. old days when people installed Linux from floppy disks, these were
  99. often refered to as "disk sets")  Only the A series catagory (containing
  100. the base Linux OS) is mandatory, but you can't do very much on a system 
  101. that only has the A series installed.  Here's an overview of the software
  102. that's available for installation, along with the amount of drive space
  103. needed to install the entire set:
  104.  
  105.      A    The base Slackware system.  Contains enough utilities to get 
  106.           Slackware running and have comm programs, editors, and installation
  107.           utilities available.  Installing the entire A series requires 25 MB.
  108.  
  109.      AP   Linux applications.  These are some useful programs, including
  110.           better editors, file quota utilities, a spell checker, man
  111.           pages (and the groff package needed to process them), a Norton
  112.           Commander clone called the Midnight Commander, extra shells, and
  113.           other utilities.  Installing the entire AP series uses 20 MB.
  114.  
  115.      D    Program development.  This series contains compilers, interpreters,
  116.           and other tools for C, C++, Objective-C, Fortran-77, Common LISP, 
  117.           Pascal, Perl, and more.  You need this series if you plan to
  118.           recompile your kernel (or anything else).  Installing the entire D
  119.           series will require 48 MB.  
  120.  
  121.      E    GNU Emacs 20.2.  This is a text editor with about a million extra
  122.           features that allow you to read your mail, news, edit and compile
  123.           programs, and just about anything else you might need to do.
  124.           Installing the entire E series will require 35 MB.
  125.  
  126.      F    Answers to Frequently Asked Questions about Linux.  This series 
  127.           will install useful Linux documentation, including the Linux HOWTOs,
  128.           on your machine under /usr/doc/faq.  Installing the F series
  129.           requires about 11 MB.
  130.  
  131.      K    Linux kernel source.  This package contains source code for the 
  132.           2.0.34 Linux kernel.  You'll need this (along with the C compiler
  133.           and utilities from the D series) if you want to recompile
  134.           your Linux kernel.  Installing the K series will require 27 MB, and
  135.           you'll need more to compile it.
  136.  
  137.      N    Networking.  This package contains TCP/IP and UUCP support for 
  138.           Slackware, including packages to support SLIP/PPP, mail programs such
  139.           as sendmail, pine, and elm, news readers like tin, trn, and nn, the
  140.           Apache Web server, and lynx Web browser.  Installing the entire N
  141.           series will use 23 MB.
  142.  
  143.      T    The teTeX TeX distribution.  TeX is a typesetting language that you
  144.           can use to format and print high-quality output on many types of
  145.           printers.  Installing the entire T series requires 42 MB.
  146.  
  147.      TCL  Tcl/Tk/TclX scripting languages, and tools for using Macintosh disk
  148.           volumes.  The TCL series needs about 7 MB.
  149.  
  150.      X    The X Window System, from XFree86 3.3.2.  This series provides a
  151.           system for supporting GUIs (Graphical User Interfaces) under 
  152.           Slackware.  The entire X series requires 70 MB.
  153.  
  154.      XAP  Applications for the X Window System.  Extra programs for X, such
  155.           as file managers (TkDesk, xfm, xfilemanager), a window manager 
  156.           that makes X resemble Windows95 (fvwm95), graphical web browsers
  157.           (Arena and Netscape Communicator), image editing and processing
  158.           apps (xv, GNU gimp), a fractal generator (xfractint), 
  159.           communications programs, and more.  Installing the entire XAP
  160.           series will require about 65 MB.
  161.  
  162.      XD   Tools to recompile X servers.  This is a kit used to relink your
  163.           server, perhaps to compile in support for a new video card.  Not
  164.           many people will need to install this -- this series is not needed
  165.           to compile X applications.  Installing the XD series will use
  166.           about 14 MB.
  167.  
  168.      XV   xview3.2p1-X11R6.  The XView series adds support for the Open Look
  169.           window manager (commonly used on Sun systems), and for compiling
  170.           XView applications.  The XV series uses 11 MB.
  171.  
  172.      Y    The Y series contains a collection of games for Slackware.
  173.           Installing the entire Y series will use about 8 MB.
  174.  
  175. You must install the A set.  You probably also want to install
  176. the AP, D, and N series, as well as the X, XAP, and possibly the XV
  177. sets if you wish to run the X Window System.  The Y series is fun if
  178. you have the space for it.
  179.           
  180.  
  181. 3.1  Creating the Installation Floppies
  182.  
  183. If your machine has a bootable CDROM drive (you may need to configure
  184. this in the system's BIOS settings) then you'll be able to directly
  185. boot the first CDROM.  In this case, you will not need to make a pair
  186. of installation disks, although you'll still need a blank floppy disk
  187. handy to be made into your system bootdisk.  If you've got a bootable
  188. CDROM drive, you can go ahead and boot the first CDROM now, and skip
  189. ahead to the section on repartitioning your hard drive.
  190.  
  191. If you don't have a bootable CDROM drive to install Slackware from,
  192. you'll need to make a set of installation floppies.  These are called
  193. the "boot" and "root" disks.  The bootdisk contains the Linux kernel,
  194. so you'll need to choose a bootdisk matched to your hardware.  The
  195. rootdisk contains a small Linux system and the installation software.
  196. Later, you'll also need a third formatted floppy disk when the system
  197. generates a custom bootdisk to start your Slackware system.  
  198.  
  199. You'll find the bootdisk images on the CDROM in the bootdsks.144 (for
  200. 1.44 MB) directory.  Because they don't have enough space to support
  201. the installation system, 1.2 MB boot/root disks are not fully supported.
  202. If you have a 1.2 MB (5.25") boot floppy drive, your options are to
  203. install a 1.44MB boot floppy drive or bootable CDROM drive (at least
  204. until the installation process is complete), or read the information
  205. in the bootdsks.12 directory for various workarounds.
  206.  
  207. USING THE VIEW PROGRAM:  If you have MS-DOS on your machine, you can
  208. greatly simplify the process of selecting and creating your boot and
  209. root disks by running the VIEW.EXE program on the CDROM.  This will
  210. let you look at the lists of boot and root disks (showing the hardware
  211. each supports) and will write out the disks automatically.  To see a
  212. list of bootdisks for your machine, start VIEW.EXE under MS-DOS. 
  213.  
  214. NOTE: Writing out the boot and root disks may not work correctly under
  215. Windows95.  Start your machine in real MS-DOS mode before attempting
  216. to create the disks.
  217.  
  218. Use the view program to switch into a directory containing Slackware 
  219. bootdisks.  If you have a 1.44 MB floppy drive, bootdsks.144 is the 
  220. directory to use.  Move the selection bar with the arrow keys until 
  221. 'bootdsks.144/' is highlighted, and then hit enter to move into the
  222. directory.  If you have a 1.2 MB floppy drive, move into the bootdsks.12/
  223. directory instead.  Once you're in one of the bootdsks.*/ directories,
  224. move down another level into one of the ide-bat/ or scsi-bat/ directories.
  225. These contain MS-DOS batch files to write out the bootdisks.  Use the
  226. scsi-bat/ directory if your machine has a SCSI controller card, or the
  227. ide-bat/ directory if it only has IDE.  You'll see a list of the bootdisks
  228. you can use.  Use the view program to select one that supports the 
  229. hardware you've got.  You'll be prompted to insert a formatted floppy disk,
  230. and then hit a key.  If all goes well, your floppy drive should start
  231. chugging away, writing the bootdisk image onto the floppy disk. 
  232.  
  233. There are two main categories of Slackware bootdisks, those that
  234. support SCSI (and IDE) controllers, and those that only support IDE.
  235. The disks that only contain IDE support have a .I extension to the
  236. filename, while those with IDE and SCSI support have a .S extension.
  237. Note that *all* of the Slackware bootdisks have full support for IDE
  238. (including IDE/ATAPI CDROM drives).  A detailed list of bootdisks for
  239. Slackware follows:
  240.     
  241.     IDE Slackware bootdisks: 
  242.     ------------------------
  243.  
  244.     aztech.i           CDROM drives:  Aztech CDA268-01A, Orchid CD-3110,
  245.                        Okano/Wearnes CDD110, Conrad TXC, CyCDROM CR520, CR540
  246.  
  247.     bare.i             ATAPI/IDE CDROM drives.  (Most CDROM drives made
  248.                        today fall into this catagory)
  249.  
  250.     bareapm.i          This disk is the same as the bare.i image, with the
  251.                        addition of Advanced Power Management support.  This
  252.                        is usually used on laptops to check the battery
  253.                        level, or to put the machine in standby or sleep mode.
  254.                        On machines that aren't laptops, it can cause booting
  255.                        problems. 
  256.  
  257.     cdu31a.i           Sony CDU31/33a CDROM
  258.  
  259.     cdu535.i           Sony CDU531/535 CDROM
  260.  
  261.     cm206.i            Philips/LMS cm206 CDROM with cm260 adapter card
  262.  
  263.     goldstar.i         Goldstar R420 CDROM (sometimes sold in a 'Reveal
  264.                        Multimedia Kit')
  265.  
  266.     isp16.i            CDROM drive connected to an ISP16/MAD16/Mozart sound
  267.                        card, or other sound card based on the OPTi 82C928
  268.                        or 82C929 chipset
  269.  
  270.     mcd.i              NON-IDE Mitsumi CDROM support
  271.  
  272.     mcdx.i             Improved NON-IDE Mitsumi CDROM support
  273.  
  274.     net.i              Ethernet support
  275.  
  276.     no_pci.i           On some machines with a biggy PCI BIOS, you can use
  277.                        this disk to avoid a boot hang.  (in many cases
  278.                        the BIOS can be fixed with a flash update from the
  279.                        motherboard manufacturer's web site) 
  280.  
  281.     optics.i           Optics Storage 8000 AT CDROM (the 'DOLPHIN' drive)
  282.  
  283.     sanyo.i            Sanyo CDR-H94A CDROM support
  284.  
  285.     sbpcd.i            Matsushita, Kotobuki, Panasonic, CreativeLabs 
  286.                        (Sound Blaster), Longshine and Teac NON-IDE CDROM
  287.                        support
  288.  
  289.     testkern.i         This is an ATAPI/IDE supporting bootdisk made with
  290.                        an experimental development kernel (2.1.10x)
  291.  
  292.     xt.i               MFM (very old) hard drive support
  293.  
  294.  
  295.     SCSI/IDE Slackware bootdisks:    
  296.     -----------------------------
  297.  
  298.     7000fast.s         Western Digital 7000FASST SCSI support.
  299.  
  300.     advansys.s         This bootdisk supports all AdvanSys SCSI controllers,
  301.                        including some SCSI cards included with HP CD-R/RW
  302.                        drives, the Iomega Jaz Jet SCSI controller, and the
  303.                        SCSI controller on the Iomega Buz multimedia adapter.
  304.  
  305.     aha152x.s          Adaptec 152x SCSI support.  This supports the AHA-1510,
  306.                        AHA-1520, AHA-1522, and AHA-2825 SCSI host adapters.
  307.  
  308.     aha1542.s          Adaptec 1542 SCSI support.
  309.  
  310.     aha1740.s          Adaptec 1740 SCSI support.
  311.  
  312.     aha2x4x.s          Adaptec AIC7xxx SCSI support.  These include the 274x
  313.                        EISA cards, 284x VLB cards, 294x PCI cards, 394x PCI
  314.                        cards, 3985 PCI card, and several versions of the
  315.                        Adaptec built-in SCSI controllers on various PC
  316.                        motherboards.
  317.  
  318.     am53c974.s         AMD AM53/79C974 SCSI support.
  319.  
  320.     buslogic.s         This supports BusLogic MultiMaster and FlashPoint SCSI
  321.                        controllers.
  322.  
  323.     dtc3280.s          DTC (Data Technology Corp) 3180/3280 SCSI support.
  324.  
  325.     eata_dma.s         DPT EATA-DMA SCSI support.  (Boards such as PM2011,
  326.                        PM2021, PM2041, PM3021, PM2012B, PM2022, PM2122, PM2322,
  327.                        PM2042, PM3122, PM3222, PM3332, PM2024, PM2124, PM2044,
  328.                        PM2144, PM3224, PM3334.)
  329.  
  330.     eata_isa.s         DPT EATA-ISA/EISA SCSI support.  (Boards such as
  331.                        PM2011B/9X, PM2021A/9X, PM2012A, PM2012B, PM2022A/9X,
  332.                        PM2122A/9X, PM2322A/9X)
  333.  
  334.     eata_pio.s         DPT EATA-PIO SCSI support.  (PM2001 and PM2012A)
  335.  
  336.     fdomain.s          This supports Future Domain's 16-bit SCSI host adapters
  337.                        (TMC-1660/1680, TMC-1650/1670, TMC-3260,
  338.                        TMC-1610M/MER/MEX) and other adapters based on the
  339.                        Future Domain chipsets (Quantum ISA-200S, ISA-250MG;
  340.                        Adaptec AHA-2920; and at least one IBM board).
  341.  
  342.     gdt.s              This is a bootdisk for all SCSI Disk Array Controllers
  343.                        (EISA/ISA/PCI) manufactured by ICP Vortex.
  344.  
  345.     ibmmca.s           This is a bootdisk based on a development kernel which
  346.                        supports MicroChannel Architecture, found in some IBM
  347.                        PS/2 machines and laptops. It is a bus system similar to
  348.                        PCI or ISA.  Support for most MCA SCSI, Ethernet, and
  349.                        Token Ring adapters is included.
  350.  
  351.     in2000.s           Always IN2000 SCSI support.
  352.  
  353.     iomega.s           IOMEGA PPA3 parallel port SCSI support.  This supports
  354.                        the parallel-port Zip drive as a Linux SCSI device.  It
  355.                        does not support the ZipPlus drive (but you can use a
  356.                        ZipPlus with Linux if you attach it to a SCSI controller.
  357.                        It works better that way, anyway. :)
  358.  
  359.     n53c406a.s         NCR 53c406a SCSI support.
  360.  
  361.     n_5380.s           NCR 5380 and 53c400 SCSI support.  This is the generic
  362.                        NCR family of SCSI controllers, not to be confused with
  363.                        the NCR 53c7 or 8xx controllers.  An example of a
  364.                        controller that uses the NCR53c400 chip is the Trantor
  365.                        T130B.
  366.  
  367.     n_53c7xx.s         NCR 53c7xx, 53c8xx SCSI support.  (Most NCR PCI SCSI
  368.                        controllers use this driver)
  369.  
  370.     n_53c8xx.s         This is the FreeBSD NCR driver adapted to Linux for
  371.                        the NCR53C8XX family of PCI-SCSI controllers. This
  372.                        driver supports parity checking, tagged command queuing,
  373.                        fast SCSI II transfer up to 10 MB/s with narrow SCSI
  374.                        devices and 20 MB/s with wide scsi devices.  It also
  375.                        supports Ultra SCSI data transfers with NCR53C860 and
  376.                        NCR53C875 controllers.
  377.  
  378.     no_pci.s           If you're having problems with a hang during PCI
  379.                        probing, try this SCSI-supporting bootdisk without PCI
  380.                        BIOS support.  Some older PCI motherboards have BIOS
  381.                        bugs and may crash if "PCI bios support" is enabled,
  382.                        but they run fine without this option.  (in many cases
  383.                        the problem can be fixed with a BIOS flash update from
  384.                        the motherboard manufacturer's web site)
  385.  
  386.     old_cd.s           This disk is provided in the unlikely event that
  387.                        someone needs to install from an old CD-ROM drive on a
  388.                        proprietary (*not* SCSI or IDE/ATAPI) interface to a
  389.                        hard drive on a SCSI controller.  This disk supports
  390.                        most Linux supported SCSI controllers, plus the CD-ROM
  391.                        drives supported by these bootdisks:  aztech.i, 
  392.                        cdu31a.i, cdu535.i, cm206.i, goldstar.i, isp16.i,
  393.                        mcd.i, mcdx.i, optics.i, sanyo.i, and sbpcd.i.
  394.  
  395.     pas16.s            Pro Audio Spectrum/Studio 16 SCSI support.
  396.  
  397.     qlog_fas.s         ISA/VLB/PCMCIA Qlogic FastSCSI! support.  (also
  398.                        supports the Control Concepts SCSI cards based on the
  399.                        Qlogic FASXXX chip)
  400.  
  401.     qlog_isp.s         Supports all Qlogic PCI SCSI controllers, except the
  402.                        PCI-basic, which is supported by the AMD SCSI driver
  403.                        found on the am53c974.s bootdisk.
  404.  
  405.     scsi.s             A generic SCSI bootdisk, with support for most SCSI
  406.                        controllers that work under Linux.  (NOTE: This disk
  407.                        wastes a lot of memory, since it contains nearly *all*
  408.                        of the SCSI drivers.  If you know which SCSI controller
  409.                        your system has, it's *far* better to use the disk
  410.                        designed especially for it.  But, if you don't know,
  411.                        then this generic disk might just work for you.)
  412.  
  413.     scsinet.s          All supported SCSI controllers, plus full ethernet
  414.                        support.
  415.  
  416.     seagate.s          Seagate ST01/ST02, Future Domain TMC-885/950 SCSI
  417.                        support.
  418.  
  419.     tekram.s           This bootdisk supports the Tekram DC390(T) PCI SCSI
  420.                        Hostadapter with the Am53C974A chip, and perhaps other
  421.                        cards using the same chip.  It does _not_ support the
  422.                        DC390W/U/F adaptor with the NCR/Symbios chips -- for
  423.                        those cards, use the n_53c8xx.s bootdisk.
  424.  
  425.     testkern.s         This is a generic SCSI supporting disk built with a
  426.                        recent development kernel such as linux-2.1.10x.
  427.  
  428.     trantor.s          Trantor T128/T128F/T228 SCSI support.
  429.  
  430.     ultrastr.s         UltraStor 14F, 24F, and 34F SCSI support.
  431.  
  432.     ustor14f.s         UltraStor 14F and 34F SCSI support.
  433.  
  434.  
  435. You'll want to choose a bootdisk from the list that supports your
  436. installation media (such as a CDROM drive) and the hard drive you'll
  437. be installing to.  For example, to install from an IDE CDROM drive to
  438. an IDE hard drive, you'd use the BARE.I disk.  Or, for a system with
  439. an NCR 53c810 SCSI controller, SCSI CDROM, and SCSI hard drive, you'd
  440. use either the n_53c8xx.s or the n_53c7xx.s bootdisk.  
  441.  
  442. Disks with network support are usually used to install from NFS, so
  443. you don't need to be concerned with whether the installed system will
  444. require ethernet drivers at this point.  When selecting the bootdisk,
  445. you only need to think about what you need to get the system
  446. installed.  You can add additional drivers after installation by
  447. recompiling the Linux kernel, or by loading the support in the form
  448. of kernel modules.
  449.  
  450. Once you've selected your bootdisk, you'll need to write it out to a
  451. floppy disk.  The easiest way to do this is to use the MS-DOS VIEW.EXE 
  452. program on the CDROM. 
  453.  
  454. Use the view program to navigate into either the bootdsks.12 or bootdsks.144
  455. directory.  From there, move into either the SCSI-BAT or IDE-BAT directory, 
  456. depending on whether you've got a SCSI controller in your system.  Here, 
  457. you'll see a list of options.  To create a bootdisk, select one of the choices
  458. with the view program.  Then follow the on-screen prompts to put a formatted 
  459. floppy in your drive and write out the disk image.
  460.  
  461. You also can create the disk manually under DOS using the RAWRITE.EXE
  462. program.  This utility copies a file onto a floppy disk directly,
  463. track by track.  To use RAWRITE, just put a formatted high density
  464. floppy disk into your boot drive, change to the bootdsks.144 or
  465. bootdsks.12 directory on the CDROM (depending on which size disk you
  466. use), and use the RAWRITE command to write out the disk:
  467.  
  468. C:\> E:   (or D:, or whatever drive letter your CDROM uses)
  469.  
  470. E:\> CD BOOTDSKS.144
  471.  
  472. E:\> DIR A:     (NOTE: On some machines  RAWRITE.EXE will incorrectly try
  473.         to use an incorrect sector size unless you make DOS look at the
  474.         disk first with the DIR command.)
  475.  
  476. E:\BOOTDSKS.144> RAWRITE BARE.I A:
  477.  
  478. In the example above, you'll notice the image written out is BARE.I.
  479. You'll want to replace that with the name of the disk you've chosen
  480. to use.
  481.  
  482. Making the floppy disks from Linux or UNIX is also no problem.  In
  483. most cases you can just stick a formatted floppy disk in the drive
  484. and then send the image to the drive with 'cat':
  485.  
  486. $ cat bare.i > /dev/fd0   (The exact name of the floppy device varies
  487.                            depending on the system used)
  488.  
  489. You also can write out the disk under Linux or UNIX using the 'dd'
  490. command.  This might work better in some cases than 'cat', since it
  491. ensures that the correct sector size is used:
  492.  
  493. $ dd if=bare.i of=/dev/(rdfd0, rdf0c, fd0, or whatever) obs=18k
  494.  
  495. Once you've created your bootdisk, you need to pick a rootdisk.  You
  496. will find these on the CDROM in the rootdsks directory.  If you plan
  497. to install Slackware on its own partition, you'll probably want to
  498. use the COLOR.GZ rootdisk.  If you want to install Slackware on an
  499. existing MS-DOS partition in a \LINUX directory, then you'll want to
  500. use the UMSDOS.GZ rootdisk.  If you are installing to a native Linux
  501. partition through a PCMCIA device, you'll need the PCMCIA.GZ rootdisk.
  502.  
  503. A list of Slackware rootdisks follows:
  504.  
  505.  COLOR.GZ     This is the default Slackware installation disk, used to install
  506.               Slackware Linux to its own partition.  The name COLOR.GZ comes
  507.               from the color menus used to install Slackware.
  508.  
  509.  UMSDOS.GZ    This is similar to the COLOR disk, but installs using UMSDOS -- a
  510.               system that allows you to install Slackware into a directory
  511.               on an existing MS-DOS partition.  This isn't as fast as using a 
  512.               native Linux filesystem, and can use more drive space because of
  513.               limitations in the way DOS stores small files.  The big advantage
  514.               of using UMSDOS is that you can try Slackware without
  515.               repartitioning your hard drive.  This is much easier for the 
  516.               beginner, and a lot less potentially dangerous to your system.
  517.  
  518.               [NOTE: If you have a bootable CDROM drive, you can try Slackware
  519.               without installing anything to your hard drive simply by
  520.               booting the second CDROM.  You can also install a UMSDOS Linux
  521.               system from within DOS or Windows by using the ZipSlack
  522.               installation system in the zipslack/ directory. ]
  523.  
  524.  PCMCIA.GZ    This is a version of the COLOR.GZ rootdisk with added support
  525.               for PCMCIA cards.  You should use this disk to install to a
  526.               laptop through the network using NFS, or from a drive connected
  527.               through a PCMCIA card.  [NOTE: at this time there is no support
  528.               for actually installing onto a PCMCIA device]
  529.  
  530. Once you've selected the rootdisk you want to use, you write it out
  531. to a formatted floppy -- as you did with the bootdisk.  Again, you
  532. can use the VIEW program to create the rootdisk.  From within the
  533. VIEW program, change into the rootdsks directory on the CDROM.  Then,
  534. select an appropriate rootdisk such as COLOR.GZ, and use VIEW to select
  535. it. Place a formatted floppy disk in your drive and press enter to write
  536. the rootdisk image to the disk.
  537.  
  538. NOTE:  Looking at the rootdisk images, you'll notice they end in .GZ.
  539.        This stands for GNU zip, a utility used to compress the rootdisk 
  540.        images.  Do not uncompress the rootdisk before writing it out.
  541.        The uncompressed images won't fit on floppy disks.
  542.  
  543. Now you should have two installation disks prepared, a bootdisk and a
  544. rootdisk.
  545.  
  546. If you haven't done so already, you also should format a high density
  547. diskette that you will use to make a bootdisk for your system when you
  548. are finished with the installation.
  549.  
  550.  
  551. 3.2  Preparing a Partition for Slackware
  552.  
  553. If you plan to install Slackware onto its own hard drive partition
  554. (this offers optimal performance), then you'll need to prepare one or
  555. more partitions for it.  If you're planning to use the UMSDOS system,
  556. then you can skip to the next section.  
  557.  
  558. A partition is a section of a hard drive that has been set aside for
  559. use by an operating system.  You can have up to four primary
  560. partitions on a single hard drive.  If you need more than that, you
  561. can make what is called an ''extended partition.''  This is actually
  562. a way to make one of the primary partitions contain several
  563. sub-partitions.
  564.  
  565. Usually there won't be any free space on your hard drive.  Instead,
  566. you will have already partitioned it for the use of other operating
  567. systems, such as MS-DOS or OS/2.  Before you can make your Linux
  568. partitions, you'll need to remove one or more of your existing drive
  569. partitions to make room for it.  Removing a partition destroys the
  570. data on it, so you'll want to back it up first.
  571.  
  572. If you've got a large DOS partition that you'd like to shrink to make
  573. space for Slackware, there's a program called FIPS in the INSTALL
  574. directory on the CDROM.  This utility allows you to shrink the size
  575. of a DOS partition without destroying the data on it.  The idea is to
  576. use a disk defragmenter utility to compress all of your data into the
  577. first part of the partition.  MS-DOS versions 6.0 and above include
  578. DEFRAG (a reduced-feature version of Norton Speedisk) which works well
  579. for this purpose.  Then you use FIPS to set a new end point for the 
  580. partition, leaving free space that you can make into Linux partitions.  
  581. Even though FIPS is usually safe to use, you are strongly advised to
  582. back up all of the data on the drive.  (In fact, if you're unwilling
  583. to back everything up and take your chances with FIPS, you should
  584. consider purchasing Partition Magic, a commercial partition re-sizing
  585. tool: http://www.powerquest.com)  You can find a detailed guide to
  586. using FIPS on the CDROM in \INSTALL\FIPS\FIPS.DOC.  If you plan to use
  587. FIPS to resize your DOS partition, refer to the FIPS guide for further
  588. repartitioning instructions.  
  589.  
  590. To read the FIPS documentation from the MS-DOS view program, move into
  591. the install directory, then into the FIPS directory, and then select
  592. 'FIPS.DOC' to bring up the documentation on the screen.
  593.  
  594. If you plan to repartition your system manually, you'll need to back
  595. up the data on any partitions you plan to change.  The usual tool for
  596. deleting/creating partitions is the FDISK program.  Most PC operating
  597. systems have a version of this tool, and if you're running DOS or
  598. OS/2 it's probably best to use the repartitioning tool from that OS.
  599. Usually DOS uses the entire drive.  Use DOS fdisk to delete the
  600. partition.  Then create a smaller primary DOS partition, leaving
  601. enough space to install Linux (hopefully 300 MB or so, and if your
  602. machine doesn't have a lot of RAM room for another partition of 32 MB
  603. for swap space).  You'll then need to reinstall DOS on your new DOS
  604. partition, and then restore your backup.
  605.  
  606.  
  607. 3.3  Using Linux fdisk to create Linux partitions
  608.  
  609. At this point, you should have a large chunk of unpartitioned space
  610. on your hard drive that you'll be making into partitions for
  611. Slackware.  To do this, place the Slackware bootdisk in your machine
  612. and reboot your machine.  The disk will display a screenful of
  613. information and give you the opportunity to enter extra kernel flags
  614. to help configure your hardware.  Most users won't need to enter
  615. anything special here.  However, if your hardware isn't detected
  616. properly (and you're SURE the bootdisk you're using contains the
  617. correct support) then see the file BOOTING.TXT on the CDROM for
  618. instructions on using this feature.  If you don't need to enter any
  619. kernel parameters (and you probably don't), then just hit enter to
  620. begin loading the kernel.  You'll see a message like this displayed
  621. on the screen as the kernel loads:
  622.  
  623. LILO loading ramdisk........
  624.  
  625. The kernel will then boot.  As the kernel probes your machine to
  626. determine its hardware configuration, you'll see plenty of diagnostic
  627. information printed to the screen.  Eventually it will display this
  628. message:
  629.  
  630. VFS: Insert root floppy disk to be loaded into ramdisk and press ENTER
  631.  
  632. Now take the bootdisk out of the drive, replace it with the rootdisk,
  633. and hit enter.  You computer will load the Slackware rootdisk into
  634. memory, and then you'll get a login prompt.  Log into the system as
  635. "root".
  636.  
  637. Creating Linux partitions
  638. -------------------------
  639.  
  640. Now you're ready to create your root Linux partition.  To do this,
  641. you'll use the Linux version of fdisk.  By default, Linux fdisk
  642. creates partitions on the first IDE hard drive (/dev/hda1).  If you
  643. need to partition a different hard drive, you need to specify the
  644. name of the device when you start fdisk.  For example:
  645.  
  646. fdisk /dev/hda          (Repartition the first IDE hard drive)
  647. fdisk /dev/hdb          (Repartition the second IDE hard drive)
  648. fdisk /dev/sda          (Repartition the first SCSI hard drive)
  649. fdisk /dev/sdb          (Repartition the second SCSI hard drive)
  650.  
  651. [NOTE: If you prefer, you may also try a newer menu-driven version
  652.  of Linux fdisk called 'cfdisk'.]
  653.  
  654. Once you've started fdisk, it will display a command prompt.  First
  655. look at your existing partition table with the 'p' command:
  656.  
  657.   Command (m for help): p
  658.  
  659.   Disk /dev/sda: 255 heads, 63 sectors, 92 cylinders
  660.   Units = cylinders of 16065 * 512 bytes
  661.  
  662.      Device Boot   Begin    Start      End   Blocks   Id  System
  663.   /dev/sda1            1        1       32   257008+   6  DOS 16-bit >= 32M
  664.  
  665. If you used FIPS to split a DOS partition, you'll see two primary DOS
  666. partitions instead of one.  The second DOS partition is empty, so you'll
  667. want to go ahead and delete it to make freespace for your Linux root and
  668. swap partitions.  To do this, use the 'd' command.  You'll be asked which
  669. partition number you want to delete.  This will probably be the second
  670. partition on the drive, but check the partition size to make sure its the
  671. right one.
  672.  
  673. Next, you'll want to use the 'n' command to create a primary
  674. partition.  This will be your root Linux partition.
  675.  
  676.   Command (m for help): n
  677.   Command action
  678.      e   extended
  679.      p   primary partition (1-4)
  680.  
  681. You'll want to enter 'p' to make a primary partition.
  682.  
  683.   Partition number (1-4): 2
  684.  
  685. Here, you enter "2" since DOS is already using the first primary
  686. partition.  Fdisk will first ask you which cylinder the partition
  687. should start on.  Fdisk knows where your last partition left off and
  688. will suggest the first available cylinder on the drive as the
  689. starting point for the new partition.  Go ahead and accept this
  690. value.  Then, fdisk will want to know what size to make the
  691. partition.  You can specify this in a couple of ways, either by
  692. entering the ending cylinder number directly, or by entering a size.
  693. In this case, we'll enter a size.  To do this, you need to enter
  694. +sizeM -- in this case, +450M.  Here's what the screen looks like as
  695. these figures are entered:
  696.  
  697.   First cylinder (33-92): 33
  698.   Last cylinder or +size or +sizeM or +sizeK (33-92): +450M
  699.  
  700. You have now created your primary Linux partition with a size of 450
  701. MB.  Next, you'll want to make a Linux swap partition.  You do this
  702. the same way.  First, enter another "n" to make a primary partition:
  703.  
  704.   Command (m for help): n
  705.   Command action
  706.      e   extended
  707.      p   primary partition (1-4)
  708.  
  709. Enter "p" to select a primary partition.  Partition 1 is in use by
  710. DOS, and you've already used partition 2 for Linux, so you'll want
  711. to enter "3" for the new partition number:
  712.  
  713.   Partition number (1-4): 3
  714.  
  715. Since this is the last partition we plan to make on this hard drive,
  716. we'll specify the end cylinder manually this time.  Here are the
  717. entries for this:
  718.  
  719.   First cylinder (90-92): 90
  720.   Last cylinder or +size or +sizeM or +sizeK (33-92): 92
  721.  
  722. Now we need to set the type of partition to 82, used for Linux swap.
  723. The reason we didn't need to set a partition type the last time is
  724. that unless otherwise specified Linux fdisk automatically sets the
  725. type of all new partitions to 83 (Linux native).  To set the
  726. partition type, use the "t" command:
  727.  
  728.   Command (m for help): t
  729.   Partition number (1-4): 3
  730.   Hex code (type L to list codes): 82
  731.  
  732. Now you're ready to save the updated partition table information onto your
  733. hard drive.  Use the "p" command again to check the results and be sure you're
  734. satisfied with them:
  735.  
  736.   Command (m for help): p 
  737.  
  738. Disk /dev/sda: 255 heads, 63 sectors, 92 cylinders
  739. Units = cylinders of 16065 * 512 bytes
  740.  
  741.    Device Boot   Begin    Start      End   Blocks   Id  System
  742. /dev/sda1            1        1       32   257008+   6  DOS 16-bit >= 32M
  743. /dev/sda2           33       33       89   465885   83  Linux native
  744. /dev/sda3           90       90       92    16065   82  Linux swap
  745.  
  746. This looks good, so we'll use the "w" command to write the data out
  747. to the drive's partition table.  If you want to exit without updating
  748. the partition table (if you've made a mistake), then you can exit
  749. without changing anything by using the "q" command instead.
  750.  
  751. When you exit fdisk using the "w" command, fdisk recommends that you
  752. reboot the machine to be sure that the changes you've made take
  753. effect.  Unless you've created extended partitions, you can go ahead
  754. and run setup without rebooting.
  755.  
  756. Note:  Sometimes fdisk will give you a message like "This drive has more 
  757. than 1024 cylinders" and warn about possible problems using partitions with
  758. DOS.  This is because MS-DOS suffers from a limitation that only allows access
  759. to the first 1024 cylinders on a hard drive.  Since LILO (the utility used to
  760. boot Linux from a hard drive) uses the BIOS routines for disk access, it's
  761. also affected by this limitation.  This means that if your drive has more than
  762. 1024 cylinders, all DOS partitions need to reside between cylinder 1 and 1024.
  763. Linux has no problem with partitions that stretch beyond cylinder 1024, but 
  764. LILO may have trouble booting kernels from them.  If that happens, you can
  765. still set up Loadlin to boot from your DOS partition, or use a bootdisk to
  766. start Linux.
  767.  
  768.  
  769. 4.0  Installing the Slackware distribution
  770.  
  771. You are now ready to begin installing software onto your hard drive.
  772. To start this process, enter the command "setup" and hit enter:
  773.  
  774.   # setup
  775.  
  776. This starts the installation program, and puts a full-color menu on
  777. your screen with the various options needed to install Slackware.  In
  778. general, you'll want to start with the ADDSWAP option.  Even if
  779. you've already created and activated a swap partition manually,
  780. you'll need to run this so Slackware adds the swap partition to your
  781. /etc/fstab file.  If you don't add it, your system won't use the swap
  782. space when you reboot.
  783.  
  784. Installing a typical system involves running the following options
  785. from the setup menu in this order:  ADDSWAP, TARGET, SOURCE,
  786. SELECT, INSTALL, and CONFIGURE. You may also start with KEYMAP if
  787. you have a non-US keyboard layout, or with TARGET if you don't want
  788. to use a swap partition.
  789.  
  790. For the rest of this section, we'll walk through a typical installation 
  791. process.
  792.  
  793.  
  794. The ADDSWAP option:
  795. -------------------
  796.  
  797. First, we select the ADDSWAP option.  The system will scan for
  798. partitions marked as type "Linux swap" and will ask if you want to
  799. use them for swap space.  Answer YES, and the system will format the
  800. partition and then make it active for swapping.  Once it's finished,
  801. setup will display a message showing the line it will add to /etc/fstab
  802. to configure the swap partition at boot time.  Hit enter to continue,
  803. and setup will go on to the TARGET section of the install.
  804.  
  805.     NOTE: If you created a partition to use for swap space, but setup
  806. doesn't see it when it scans your drives, it's possible that the
  807. partition type hasn't been set in the partition table.  Use the Linux
  808. "fdisk" program to list your partitions like this:
  809.  
  810.     # fdisk -l
  811.  
  812.     Disk /dev/sda: 255 heads, 63 sectors, 92 cylinders
  813.     Units = cylinders of 16065 * 512 bytes
  814.  
  815.        Device Boot   Begin    Start      End   Blocks   Id  System
  816.     /dev/sda1            1        1       32   257008+   6  DOS 16-bit >= 32M
  817.     /dev/sda2           33       33       89   465885   83  Linux native
  818.     /dev/sda3           90       90       92    16065   83  Linux native
  819.  
  820.     In this case, if /dev/sda3 is meant to be a Linux swap partition, you'll
  821.     need to start fdisk on drive /dev/sda:
  822.  
  823.     # fdisk /dev/sda
  824.  
  825.     Command (m for help): t
  826.     Partition number (1-4): 3
  827.     Hex code (type L to list codes): 82
  828.  
  829.     Command (m for help): w
  830.  
  831.     This will change the third partition to type 82 (Linux swap) and write the
  832.     partition table out to /dev/sda.
  833.  
  834.     Now, when you run setup again, the ADDSWAP option should detect the
  835.     Linux swap partition.
  836.  
  837.  
  838. The TARGET option:
  839. ------------------
  840.  
  841. The next option on the setup menu is TARGET.  This lets you select
  842. which partition(s) you'd like to install Slackware on, and will
  843. format them using the Linux Second Extended Filesystem.  When you
  844. select the TARGET option, the system will scan for "Linux native"
  845. partitions on your hard drives.  If it doesn't find any, you'll need
  846. to make sure that you've created partitions using the fdisk program,
  847. and that the partitions are labeled as type 83 (Linux native).  This
  848. is the same process shown above.  If you've created one or more
  849. partitions for Slackware using Linux's fdisk program then you shouldn't
  850. have any problems, since Linux fdisk (and cfdisk) sets all new 
  851. partitions to type 83 (Linux native) by default.
  852.  
  853. You will see a menu listing all the Linux native partitions.  Use the
  854. arrow keys to select the partition you'd like to use for your root
  855. (or primary) Linux partition and hit enter.  The setup program will
  856. then ask if you'd like to format the partition.  If this is a new
  857. installation of Slackware, you'll need to do this.  Otherwise, if
  858. you are installing software onto an existing Linux partition, you
  859. don't need to format the partition.  
  860.  
  861. There are a few options you need to know about when you format Linux
  862. partitions.  First, you'll need to decide whether or not you'd like
  863. to check the partition for bad blocks when you do the format.  This
  864. is usually not necessary unless you know the drive in question has
  865. problems.  Checking takes a long time compared to a normal format, so
  866. you'll probably want to just go ahead and use the "Format" menu
  867. option to format the drive normally.  If you have drive problems
  868. later on, then you might want to try using the "Check" option to map
  869. the bad sectors on the drive.  
  870.  
  871. Once you've picked your formatting mode, setup will prompt you to
  872. provide the inode density.  On Linux filesystems, entries called
  873. "inodes" store the names of files and the locations of the blocks
  874. that make up the file.  You need at least one inode for each file, so
  875. if you run out of inodes then you can't make any new files, even if
  876. there seems to be plenty of space on the drive.  Inodes themselves
  877. take up space on your drive, so you need to consider how you will use
  878. the partition.  Usually, the default value of one inode for every
  879. 4096 bytes on the drive is fine.  But if you're planning to use the
  880. drive for a news feed or something that uses many small files, then
  881. you may wish to increase the inode density to one inode for every
  882. 2048 (or even 1024) bytes.  Once you've selected the inode density,
  883. setup will go ahead and format your root Linux partition. You will
  884. then return to the menu showing the partitions available for Linux.  
  885.  
  886. You'll notice that the partition you just formatted is now listed as
  887. "in use."  If you made some other partitions for Slackware, you'll
  888. need to go through the same process of formatting them, selecting
  889. whether or not to check for bad blocks, and setting a reasonable
  890. inode density.  With these partitions there will be an additional
  891. step -- you'll need to select where you'd like to put the partition
  892. in your directory tree.  
  893.  
  894. MS-DOS assigns a letter such as A:, B:, C:, etc, to each device.
  895. Unlike DOS, Linux makes your devices visible somewhere under the root
  896. directory (/).  You might have /dev/hda1 for your root partition (/)
  897. and put /dev/hda2 somewhere underneath it, such as under your /home
  898. directory.  When prompted for a mount location, just enter a
  899. directory such as /home, and hit enter.  As you format each
  900. additional partition and place it in the filesystem tree, you'll be
  901. returned to the partition selection menu.  When you've prepared all
  902. of your Linux partitions, you'll go on to the SOURCE option.
  903.  
  904.  
  905. The SOURCE option:
  906. ------------------
  907.  
  908. The next menu option is SOURCE, where you select the physical media
  909. from which to install Slackware.  
  910.  
  911. SOURCE displays a menu offering the choice of installation from
  912. CDROM, a hard drive partition, NFS, a directory (mounted manually),
  913. or floppy disks (only the A and N series are floppy-install capable).
  914. Make sure your Slackware CDROM is in your drive, and select option 1:
  915. Installing from CDROM.  Next, the system will ask you if you'd like
  916. to scan for your CDROM drive or pick manually from a list.  (unless
  917. you're trying to show off to your friends, go ahead and let setup
  918. scan for the CDROM drive automatically)  Setup will then try to access
  919. the Slackware CDROM.  If this is successful, setup will ask you what 
  920. type of installation you want: "slakware" or "slaktest".  We recommend
  921. the first (and default) option "slakware" for best performance.  This
  922. option installs all of the Linux software to your hard drive.  The
  923. other option, "slaktest", keeps the majority of the software on the
  924. CDROM.  If you use the "slaktest" option, you'll have to have the second
  925. CDROM in your computer's CDROM drive whenever you run Linux, and you'll
  926. suffer a significant performance hit.  On the plus side, you'll have
  927. access to a full Linux system while only using 20 megabytes of hard
  928. drive space.  Once you've selected your installation type (CDROM
  929. dependent or not) you'll go on to the SELECT section to pick which
  930. catagories of software you wish to install.
  931.  
  932.  
  933. If setup was not successful accessing your CDROM drive.
  934. -------------------------------------------------------
  935.  
  936. If setup is not successful in accessing the CDROM drive, you'll need
  937. to figure out why before you can go on.  The most common reason for
  938. this is that you used a bootdisk that doesn't support the CDROM
  939. drive.  In this case, you'll have to figure out the correct disk to
  940. use.  Refer to the list of bootdisks and the drives they support.  
  941.  
  942. Another common mistake is selecting the wrong option when asked which
  943. type of CDROM drive you have.  Some manufacturers make different
  944. versions of their drives, and it can be difficult to know which
  945. version you've got without trying a few different options.  For
  946. example, Mitsumi makes several models of CDROM drives; some of these
  947. come with their own interface card, and need the Linux Mitsumi driver
  948. (and are selected as a Mitsumi drive from the menu), while most of
  949. the recent Mitsumi drives plug directly onto the computer's IDE
  950. interface (and are selected as an ATAPI/IDE CDROM drive).  
  951.  
  952. For ATAPI/IDE drives, you also need to know which device entry your
  953. computer uses to access the drive.  Sometimes the system's hard drive
  954. will be the master device on the IDE interface, while the CDROM is
  955. connected as the slave device.  In this example, the hard drive is
  956. /dev/hda, and the CDROM drive is /dev/hdb.  
  957.  
  958.  
  959. Identifying your CDROM drive
  960. ----------------------------
  961.  
  962. If you have no idea which device an IDE CDROM drive is connected to,
  963. you should have the system scan for it.  You also can look at the
  964. messages generated by the system as it boots -- you should see a
  965. message that Slackware detected your CDROM drive along with
  966. information about what type of drive it is.  You can look at these
  967. messages by using the right shift key together with the PageUp and
  968. PageDown keys to scroll the screen up and down.  If you don't see a
  969. message about your drive, you're probably using the wrong bootdisk.
  970. If you're not sure which bootdisk you need to use, try these steps:
  971.  
  972. If your CDROM drive is connected to a SCSI controller, try using the
  973. SCSI.S disk.  This contains most of the Linux SCSI drivers, and
  974. should identify which controller your system uses.  Then make the
  975. bootdisk especially for your controller to use for the installation
  976. process.
  977.  
  978. If you have an IDE controller, keep trying the various IDE bootdisks.
  979. Watch the screen for a message saying that Slackware detected your
  980. CDROM drive.
  981.  
  982. If your machine is a little older than average, you can try the
  983. OLD_CD.S bootdisk.  This contains support for a bunch of older
  984. CDROM drives that predate the ATAPI/IDE standard.  Many of these
  985. drives came with a propritary interface card, or were connected
  986. to sound cards (sometimes bundled with the CDROM drive).
  987.  
  988. If Slackware still won't detect your drive, look at the file
  989. BOOTING.TXT on the CDROM.  This contains a list of extra parameters
  990. you can pass to the kernel when you boot a Slackware bootdisk.  These
  991. parameters can be handy to force hardware detection when the
  992. autoprobing fails.  For example, you can tell the kernel to look for
  993. a Sony CDU31a drive by entering the following command line on the
  994. bootdisk's first prompt:
  995.  
  996.    ramdisk cdu31a=0x1f88,0,PAS
  997.  
  998. This tells the kernel that you've got a Sony CDU31a drive connected
  999. to an interface card at address 0x1f88, interrupts are disabled, and
  1000. the interface card is a Pro Audio Spectrum. 
  1001.  
  1002. The documentation that comes with the Linux kernel also lists
  1003. examples for other types of hardware.  You can find these on the
  1004. Slackware CDROM in the /docs/linux-2.0.34 directory (DOS may mangle
  1005. this filename).
  1006.  
  1007.  
  1008. Starting the installation from MS-DOS
  1009. -------------------------------------
  1010.  
  1011. If you can't get your CDROM detected by Linux, it's possible that the
  1012. kernel doesn't support it.  Linux supports most hardware, but some
  1013. types of hardware (most notably plug-and-play devices) can be hard to
  1014. use.  If you've tried everything and still can't use the CDROM drive,
  1015. you can still install Slackware.  You do this by copying files from the
  1016. CDROM onto a DOS partition, and then installing the software from there.  
  1017.  
  1018. The Linux Installation-HOWTO (INSTALL.TXT on the CDROM) gives an
  1019. in-depth discussion of this, but here's a brief description of the
  1020. steps involved:
  1021.  
  1022.    1. Under MS-DOS, create a directory to install from, such as C:\SLACK.
  1023.    2. Copy the disk sets you wish to install from the CDROM into the
  1024.       C:\SLACK directory with XCOPY.  For instance, you'd use this command
  1025.       to copy the A series from the CDROM to your DOS partition from a CDROM
  1026.       assigned a drive letter of E:
  1027.  
  1028.            XCOPY E:\SLAKWARE\A* C:\SLACK /S
  1029.  
  1030.       This will copy the software into subdirectories of C:\SLACK named A1,
  1031.       A2, A3, etc.  Do the same for any other disk sets you wish to install.
  1032.    3. Run setup.  When you get to the SOURCE option, tell it you want to
  1033.       install from a hard drive partition.  Enter the source device (such as
  1034.       /dev/hda1) and the directory to install from (in this case, /slack) and
  1035.       then proceed with the installation as normal.
  1036.  
  1037.  
  1038. The SELECT option:
  1039. ------------------
  1040.  
  1041. The SELECT option lets you select software to install.
  1042.  
  1043. When you start the SELECT option, you'll see a menu where you can
  1044. choose which categories of software you're interested in installing.
  1045. The first series (called the A series) contains the base filesystem
  1046. structure and binaries that are crucial for your system to boot and
  1047. run properly.  You must install the A series.  Make sure that at
  1048. least the selection for series A has an [X] next to it.  Use the
  1049. cursor keys and the space bar to select other things to install.
  1050.  
  1051. Once you've selected the general categories of software you wish to
  1052. install, hit enter and you'll go on to the INSTALL option.
  1053.  
  1054.  
  1055. The INSTALL option:
  1056. -------------------
  1057.  
  1058. This option goes through the categories of software you've chosen and
  1059. installs them.
  1060.  
  1061. The first question the INSTALL option will ask is what type of
  1062. prompting you'd like to use during the installation process.  A menu
  1063. will show several options, including "full", "newbie", "menu", "expert",
  1064. "custom", "tagpath", and "help".  The help option gives detailed
  1065. information on each of the choices.
  1066.  
  1067. Most people will want to use "full", "menu", "expert" or "newbie" mode.
  1068.  
  1069. The first option to consider is "full".  If you select this mode, then
  1070. setup assumes you want to install all the packages in each selected
  1071. series and installs them all without further prompting.  This is fast and
  1072. easy.  Of course, depending on which software catagories you've chosen,
  1073. this can use a lot of drive space.  If you use this option, you should
  1074. be installing to a partition with at least 400 megabytes free to insure
  1075. that you don't run out of drive space during the installation process.
  1076.  
  1077. The "newbie" mode (which was formerly known as "normal" mode) installs
  1078. all of the required packages in each series.  For each of the others
  1079. (one by one) you'll get a menu where you can answer YES (install the
  1080. package), NO (do not install the package), or SKIP (skip ahead to the
  1081. next series).  You'll also see a description of what the package does
  1082. and how much space it will require to help you decide whether you need
  1083. it or not.  The "newbie" mode is verbose, requires input after each
  1084. package, and can be tedious, but using it is a good way to get a basic
  1085. education about what software goes into the system.
  1086.  
  1087. If you can decide which packages you want from less information, the
  1088. "menu" option is a good choice, and goes much faster than a "newbie"
  1089. mode installation.  The "menu" option displays a menu before installing
  1090. each series and lets you toggle items on or off with the spacebar.
  1091. Certain packages that are considered crucial will be installed by
  1092. default, and won't be shown on your selection menu.  Once you've
  1093. selected the packages you want, you hit enter and all the selected
  1094. software from the series is installed automatically.  This process is
  1095. repeated for each software series.
  1096.  
  1097. The "expert" option is similar to the "menu" option, but assumes you
  1098. want control over every package that could get installed.  The "expert"
  1099. mode lets you toggle packages individually, allowing the user to make
  1100. bad decisions like turning off crucial packages or installing a package
  1101. that's part of a larger set of software without installing the other
  1102. parts.  If you know exactly what you need, the "expert" mode offers the
  1103. maximum amount of flexibility.  If you don't know what you need, using
  1104. the "expert" mode will allow you to install a system that's missing
  1105. crucial files.
  1106.  
  1107. The "custom" and "tagpath" options are only used if you've created
  1108. "tagfiles" for installation.  In the first directory of each disk set
  1109. is a file called "tagfile" containing a list of all the packages in
  1110. that series, as well as a flag marking whether the package should be
  1111. installed automatically, skipped, or the user should be prompted to
  1112. decide.  This is useful for situations where you need to install
  1113. large numbers of machines (such as in a computer lab), but most users
  1114. will not need to create tagfiles.  If you are interested in using
  1115. them, look at one of the tagfiles with an editor.
  1116.  
  1117. If you're new to Slackware, and you have enough drive space, you'll
  1118. probably want to select the "full" option as the easiest way to 
  1119. install.  Otherwise, the "menu" option is another good choice for most
  1120. beginners.  If you think you need (or would just like to see) the
  1121. extra information offered by the "newbie" mode, go ahead and use that.
  1122.  
  1123. Once you have selected a prompting mode, the system begins the
  1124. installation process.  If you've chosen "menu" or "expert" mode,
  1125. you'll see a menu of software to choose from right away -- use the
  1126. arrow keys and spacebar to pick what you need, and then hit enter to
  1127. install it.  If you've chosen the "newbie" mode, the installation will
  1128. begin immediately, continuing until it finds optional packages.  You'll
  1129. get a selection menu for each of these.
  1130.  
  1131. If you've selected too much software, it's possible that your hard
  1132. drive may run out of space during installation.  If this happens,
  1133. you'll know it because you'll see error messages on the screen as
  1134. setup tries to install the packages.  In such a case, you'll have to
  1135. reinstall selecting less software.  You can avoid this problem by
  1136. choosing a reasonable amount of software to begin with, and
  1137. installing more software later once your system is running.
  1138. Installing software on a running Slackware system is even easier than
  1139. the initial installation -- just type "setup" at a prompt, select
  1140. CDROM as the source, and install some more software.  
  1141.  
  1142. Once you have installed the software on your system, you'll go on to
  1143. the CONFIGURE option.
  1144.  
  1145.  
  1146. The CONFIGURE option:
  1147. ---------------------
  1148.  
  1149. The setup's CONFIGURE option does the basic configuration your
  1150. system needs, such as creating links for your mouse and modem,
  1151. setting your timezone, and more.
  1152.  
  1153. The CONFIGURE option will first ensure that you've installed a usable
  1154. Linux kernel on your hard drive.  (If you're installing from the
  1155. bootable CDROM, this will be done automatically)  There are a couple
  1156. of generic kernels that come with the A series called IDE and SCSI,
  1157. but the best kernel to install is the one from your bootdisk.  To do
  1158. this, select the "bootdisk" option on the kernel installation menu.
  1159. The menu will prompt you to reinsert your installation bootdisk and
  1160. hit enter, and then setup will copy the kernel from the bootdisk to
  1161. your hard drive.
  1162.  
  1163. If you don't want to use that kernel, you can pick a kernel from a
  1164. menu of kernels available on the CDROM, but if you install the wrong
  1165. kernel the machine likely won't boot -- it's really a much better plan
  1166. ro install the bootdisk kernel.  Since you used it to successfully install
  1167. Slackware, you know it will work on the installed system as well.
  1168.  
  1169. NOTE:  If you install a kernel on your system that doesn't boot
  1170. correctly, you can still boot your system with the installation
  1171. bootdisk.  To do this, you need to enter some information on the
  1172. bootdisk's boot prompt.  For example, if your root partition is on
  1173. /dev/sda1, you'd enter this to boot your system:
  1174.  
  1175.         mount root=/dev/sda1 ro
  1176.  
  1177. The "ro" option makes the root partition initially load as read-only
  1178. so Linux can safely check the filesystem.  If you're using the UMSDOS
  1179. filesystem, use "rw" (for read-write) instead.
  1180.  
  1181. Once you've installed a kernel, you'll be asked if you want to make a
  1182. bootdisk for your new system.  This is a very good idea, so insert a
  1183. formatted floppy disk and use the "lilo" option to create a bootdisk
  1184. for your system.
  1185.  
  1186. Next, you'll be asked if you have a modem.  If you do, pick the
  1187. device from the list shown.  This will make a link in /dev pointing
  1188. to the correct device, such as /dev/modem -> /dev/cua1.  Similarly,
  1189. you'll be asked what type of mouse you have.  Pick the mouse type
  1190. from the menu (or hit cancel if you don't have a mouse), and setup
  1191. will create a /dev/mouse link.
  1192.  
  1193. After this, other installation scripts will run depending on which
  1194. packages you've installed.  For instance, if you installed sendmail
  1195. you'll be asked if you're running TCP/IP or UUCP.  
  1196.  
  1197.  
  1198. LILO
  1199. ----
  1200.  
  1201. LILO is the Linux Loader, a program that allows you to boot Linux
  1202. (and other operating systems) directly from your hard drive.  If you
  1203. installed the LILO package, you now have an opportunity to set it up.
  1204.  
  1205. NOTE: For UMSDOS installations, we don't recommend installing LILO.
  1206.  
  1207. Installing LILO can be dangerous.  If you make a mistake it's
  1208. possible to make your hard drive unbootable.  If you're new to Linux,
  1209. it might be a good idea to skip LILO installation and use the
  1210. bootdisk to start your system at first.  You can install LILO later
  1211. using the 'liloconfig' command after you've had a chance to read the
  1212. information about it in /usr/lib/lilo.  If you do decide to go ahead
  1213. and install LILO, be sure you have a way to boot all the operating
  1214. systems on your machine in case something goes wrong.  If you can't
  1215. boot DOS again, use the DOS command ``FDISK /MBR'' to remove LILO from
  1216. your master boot record.
  1217.  
  1218. The easiest way to set your machine up with LILO is to pick the
  1219. "simple" choice on the LILO installation menu.  This will examine
  1220. your system and try to set up LILO to be able to boot DOS (Windows),
  1221. Linux, and OS/2 partitions that it finds.  If it locates the OS/2
  1222. Boot Manager, it will ask if you'd like to configure the Linux
  1223. partition so that you can add it to the Boot Manager menu.  (NOTE:
  1224. If you use a disk overlay program for large IDE hard drives such as
  1225. EZ-DRIVE, please see the warning below before installing LILO)
  1226.  
  1227. The "expert" option gives you much more control over the configuration
  1228. of LILO.  If you decide to use the "expert" option, here's how you do
  1229. it.  LILO uses a configuration file called /etc/lilo.conf to hold the
  1230. information about your bootable partitions -- the "expert" LILO
  1231. installation lets you direct the construction of this file.  To create
  1232. the file, first select BEGIN to enter the basic information about 
  1233. where to install LILO.  The first menu will ask if you have extra
  1234. parameters you'd like passed to the Linux kernel at boot time.  If you
  1235. need any extra parameters enter them here.  
  1236.  
  1237. Next, decide where you want LILO installed.  Usually you'll want to
  1238. install LILO on the boot drive's MBR (master boot record).  If you
  1239. use a different boot manager (like the one that comes with OS/2) then
  1240. you'll want to install LILO on your root Linux partition and then add
  1241. that partition to the boot manager menu using its configuration tool.
  1242. Under OS/2, this is the fdisk program.
  1243.  
  1244. NOTE:  If you use the EZ-DRIVE utility (a diskmanager program supplied 
  1245. with some large IDE drives to make them usable with DOS) then do not 
  1246. install LILO to the MBR.  If you do, you may disable EZ-DRIVE and render
  1247. your disk unusable with DOS.  Instead, install LILO to the superblock of
  1248. your root Linux partition, and use fdisk to make the partition bootable.
  1249. (With MS-DOS fdisk, this is called setting the "active" partition)
  1250.  
  1251. The next menu lets you set a delay before the system boots into the 
  1252. default operating system.  If you're using LILO to boot more than one 
  1253. operating system (such as DOS and Linux) then you'll need to set a delay 
  1254. so you can pick which OS you'd like to boot.  If you press the SHIFT key 
  1255. during the delay, LILO will display a prompt where you can type a label 
  1256. (typically DOS or Linux) to select which OS to boot.  If you set the 
  1257. delay to 'Forever', the system will display a prompt at boot time and wait 
  1258. for you to enter a choice.
  1259.  
  1260. Next, you need to add entries for each operating system that LILO can
  1261. boot.  The first entry you make will be the machine's default
  1262. operating system.  You can add either a DOS, Linux or OS/2
  1263. partition first.  For example, let's say you select "Linux".  The
  1264. system will display your Linux partitions and ask which one of them
  1265. you'd like to boot.  Enter the name (like /dev/hda1) of your root Linux
  1266. partition.  Then, you'll be prompted to enter a label.  This is the
  1267. name you will enter at the boot time LILO prompt to select which
  1268. partition you want to boot.  A good choice for this is "Linux".
  1269.  
  1270. Adding a DOS or OS/2 partition is similar.  To add a DOS partition to
  1271. the LILO configuration file, select the DOS option.  The system will
  1272. display your DOS partitions and ask which one of them you'd like to
  1273. boot with LILO.  Enter the name of your primary DOS partition.  Then
  1274. enter a label for the partition, like "DOS".  Once you've added all of
  1275. your bootable partitions, install LILO by selecting the "Install" option.
  1276.  
  1277.  
  1278. Networking
  1279. ----------
  1280.  
  1281. Another configuration menu allows you to configure your machine's
  1282. networking setup.  First, enter a hostname for your machine.  The
  1283. default hostname after installation is "darkstar," but you can enter
  1284. any name you like.  Next, you'll be asked to provide a domain name.
  1285. If you're running a stand-alone machine (possibly using a dialup link
  1286. to an Internet Service Provider) then you can pick any name you like.
  1287. The default domain name is "frop.org".  If you are going to add the
  1288. machine to a local network, you'll need to use the same domain name
  1289. as the rest of the machines on your network.  If you're not sure what
  1290. this is, contact your network administrator for help.  Once you've
  1291. specified the hostname and domain name, you'll be asked if you want
  1292. to set up the machine to only use loopback.  If you don't have an
  1293. ethernet card, just use loopback.  Otherwise, say NO. Then the setup
  1294. program will ask for your machine's IP address, netmask, gateway, and
  1295. nameserver.  Again, if you don't know what numbers you should be using,
  1296. ask the person in charge of the network to help.
  1297.  
  1298. Once you've completed all the configuration menus, you can exit setup
  1299. and reboot your machine.  Simply press ctrl-alt-delete and the kernel
  1300. will kill any programs that are running, unmount your filesystems
  1301. and restart the machine.
  1302.  
  1303.  
  1304. 4.1  Booting the installed Slackware system
  1305.  
  1306. If you've installed LILO, make sure you don't have a disk in your
  1307. floppy drive -- when your machine reboots it should start LILO.
  1308. Otherwise, insert the bootdisk made for your system during the
  1309. configuration process and use it to boot.  Also, make sure to remove
  1310. the CDROM to avoid booting it, or disable your machine's CDROM
  1311. booting feature in the BIOS settings.
  1312.  
  1313. The kernel will go through the startup process, detecting your
  1314. hardware, checking your partitions and starting various processes.
  1315. Eventually you'll be given a login prompt:
  1316.  
  1317. darkstar login:
  1318.  
  1319. Log into the new system as "root".
  1320.         
  1321.         Welcome to Linux 2.0.34
  1322.  
  1323.         darkstar login: root
  1324.         last login: Mon Jul 1 10:37:39 on ttgl 
  1325.         Linux 2.0.34.
  1326.         You have new mail.
  1327.  
  1328.         darkstar: ~#
  1329.  
  1330.  
  1331. 4.2  Post-installation configuration
  1332.  
  1333. Once the system is running, most of the work is complete.  However,
  1334. there are still a few programs you'll need to configure.  We'll cover
  1335. the most important of these in this section.
  1336.  
  1337. /etc/rc.d/rc.modules
  1338. --------------------
  1339.  
  1340. This file contains a list of Linux kernel modules.  A kernel module
  1341. is like a device driver under DOS.  You can think of the
  1342. /etc/rc.d/rc.modules file as similar to DOS's CONFIG.SYS.  The file
  1343. specifies which modules the system needs to load to support the
  1344. machine's hardware.  After booting your machine, you may find that some
  1345. of your hardware isn't detected (usually an ethernet card).  To
  1346. provide the support, you'll need to load the correct kernel module.
  1347.  
  1348. To do this, edit the /etc/rc.d/rc.modules file with a text editor
  1349. such as "vi", "pico", or "emacs".  You'll see a list of modules, one
  1350. per line.  Most of these lines will have a '#' at the beginning of them
  1351. which causes the line to be ignored.  As an example, let's say your
  1352. machine has a 3com 3c509 ethernet card.  To activate support for this
  1353. card, find the line with '3c509' in it, and remove the '#' from the
  1354. beginning of the line -- then save the changed file.  When you reboot
  1355. the system, the module will load and the kernel will recognize the
  1356. card.  
  1357.  
  1358. There's a lot more information out there about kernel modules,
  1359. including lists of module names and the cards they support, as well
  1360. as extra options you can can add to the module lines to configure
  1361. the hardware in different ways. This documentation is on the Slackware
  1362. CDROM in the /docs directory.  Useful files include /docs/mini/Kerneld,
  1363. /docs/kernel-2.0.34/modules.txt, and 
  1364. /docs/kernel-2.0.34/networking/net-modules.txt.
  1365.  
  1366.  
  1367. Configuring the X Window System
  1368. -------------------------------
  1369.  
  1370. Configuring X is a complex task.  The reason for this is the vast
  1371. numbers of video cards available for the PC architecture, most of
  1372. which use different programming interfaces.  For this reason, you
  1373. need to know quite a bit of information about your video hardware
  1374. before you can configure X.  Fortunately (especially since many
  1375. off-the-shelf systems don't even tell you what type of card you've
  1376. got) there's a utility to help.  "SuperProbe" comes with XFree86 (the
  1377. version of X included with Slackware) and probes your video hardware
  1378. and displays as much information as it can find on the screen.  To
  1379. use it, just type SuperProbe at a prompt, and make a note of what
  1380. type of card it says you have.
  1381.  
  1382. # SuperProbe
  1383.  
  1384. To configure X, you'll need to make an /etc/XF86Config file.  This
  1385. file contains lots of details about your video hardware, mouse, and
  1386. monitor.  It's a very complex configuration file, so fortunately the
  1387. XFree86 team has written a program called "xf86config" to help with
  1388. the process.  To use xf86config, first start the utility from a root
  1389. prompt:
  1390.  
  1391. # xf86config
  1392.  
  1393. This will present a screenful of information about xf86config.  To
  1394. continue, press enter.  xf86config will ask you to verify
  1395. you have set your PATH correctly.  It should be fine, so go ahead and
  1396. hit enter.
  1397.  
  1398. Next, select your mouse from the menu presented.  If
  1399. you don't see your serial mouse listed, pick the Microsoft protocol
  1400. -- it's the most common and will probably work.  Next xf86config will
  1401. ask you about using ChordMiddle and Emulate3Buttons.  You'll see
  1402. these options described in detail on the screen. Use
  1403. them if the middle button on your mouse doesn't work under X, or if
  1404. your mouse only has two buttons (Emulate3Buttons lets you simulate
  1405. the middle button by pressing both buttons simultaneously).  Then,
  1406. enter the name of your mouse device.  The default choice, /dev/mouse,
  1407. should work since the link was configured during Slackware setup.
  1408. If you're running GPM (the Linux mouse server) in repeater mode, you
  1409. can set your mouse type to /dev/gpmdata to have X get information
  1410. about the mouse through gpm.  In some cases (with busmice especially)
  1411. this can work better.
  1412.  
  1413. xf86config will ask you about enabling special key bindings.
  1414. If you need this say "y".  Most users can say "n" -- enter this if
  1415. you're not sure.  
  1416.  
  1417. In the next section you enter the sync range for your monitor.
  1418. To start configuring your monitor, press enter.  You will see a list
  1419. of monitor types -- choose one of them.  Be careful not to exceed the
  1420. specifications of your monitor.  Doing so could damage your hardware.
  1421. Specify the vertical sync range for your monitor (you should
  1422. find this in the manual for the monitor).  xf86config will ask you to
  1423. enter strings to identify the monitor type in the XF86Config
  1424. file. Enter anything you like on these 3 lines (including
  1425. nothing at all).  
  1426.  
  1427. Now you have the opportunity to look at the database of video card
  1428. types.  You'll want to do this, so say "y", and select a card from the
  1429. list shown.  If you don't see your exact card, try selecting one that
  1430. uses the same chipset and it will probably work fine.  Then choose an
  1431. X server.  You should have installed the server recommended for your
  1432. card, but if not, you can always go back and install that later.
  1433. Choose option (5) to use the X server recommended for your video card's
  1434. chipset.  
  1435.  
  1436. When asked if you wish to set the symbolic link, say 'y', and set the
  1437. link in /var/X11R6/bin.  Next, tell xf86config how much RAM you have
  1438. on your video card.  xf86config will want you to enter some more
  1439. descriptive text about your video card.  If you like, you can enter
  1440. descriptions on these three lines.  
  1441.  
  1442. You'll be asked next about your RAMDAC and clock generator settings.
  1443. You may enter them if you know the values, but the X server will
  1444. probably successfully probe for these values.  The next option is to
  1445. run X -probeonly to find the clock settings for the card.  You can try
  1446. this, and if it works it will speed up X's startup time.  If it fails,
  1447. it's not usually a big problem.  If it causes problems with your card,
  1448. don't use it.
  1449.  
  1450. You'll then be asked which display resolutions you want to use.  Again,
  1451. going with the provided defaults should be fine to start with.  Later
  1452. on, you can edit the /etc/XF86Config file and rearrange the modes so
  1453. 1024x768 (or whatever mode you like) is the default.  
  1454.  
  1455. At this point, the xf86config program will ask if you'd like to save the
  1456. current configuration file.  Answer yes, and the X configuration file is
  1457. saved, completing the setup process.  You can start X now with the
  1458. 'startx' command.
  1459.  
  1460.  
  1461. User Accounts
  1462. -------------
  1463.  
  1464. You should make a user account for yourself.  Using "root" as your
  1465. everyday account is considered bad form (at the very least) since
  1466. you can accidently damage your system if you mistype a command.  If
  1467. you're logged in as a normal user, the effects of bad commands will
  1468. be much more limited.  Normally you'll only log in as root to perform
  1469. system administration tasks, such as setting or changing the root
  1470. password, installing, configuring, or removing system software, and
  1471. creating or deleting user accounts.
  1472.  
  1473. To make an account for yourself, use the 'adduser' program.  To start
  1474. it, type 'adduser' at a prompt and follow the instructions.  Going with
  1475. the default selections for user ID, group ID, and shell should be just
  1476. fine for most users.
  1477.  
  1478.  
  1479. Securing your machine
  1480. ---------------------
  1481.  
  1482. When you first boot a newly installed Slackware system, there is no
  1483. password for the root account.  You should change this immediately.
  1484. To do this, use the "passwd" command:
  1485.  
  1486. darkstar:~#  passwd
  1487.  
  1488. The system will prompt you to enter a password for the root account.
  1489.  
  1490. When choosing passwords for a Linux system that is connected to a
  1491. network you should pick a strong password.  However, passwords only
  1492. help protect a system from remote tresspassing.  It's easy to gain
  1493. access to a system if someone has physical access to the console.
  1494.  
  1495. If you forget the root password, you can use a rescue disk to mount
  1496. your root partition and edit the files containing the password
  1497. information.  If you have a bootable CDROM drive, the second CDROM
  1498. provides a full bootable version of Linux (with no root password)
  1499. and makes an excellent rescue disk.  Otherwise, use the bootdisk that
  1500. you used to install Linux to load the "rescue.gz" rootdisk image.
  1501. At the prompt, you can manually mount the root Linux partition from
  1502. your hard drive and remove the root password.  For example, if your
  1503. root linux partition is /dev/hda2, here are the commands to use after
  1504. logging into the rescue disk as "root":
  1505.  
  1506.   mount /dev/hda2 /mnt
  1507.   cd /mnt/etc
  1508.  
  1509. Next, you'll need to edit the "shadow" file to remove root's password.
  1510. Editors which might be available include "vi", "emacs", and "pico".
  1511. "vi" and "emacs" might be more of an adventure than you need unless
  1512. you've used them before.  The "pico" editor is easy for beginners to use.
  1513.  
  1514.   pico shadow
  1515.  
  1516. At the top of the file, you'll see a line starting with root.  Right
  1517. after root, you'll notice the encrypted password information between two
  1518. colons.  Here's how root's line in /etc/shadow might look:
  1519.  
  1520. root:EnCl6vi6y2KjU:10266:0:::::
  1521.  
  1522. To remove root's password, you use the editor to erase the scrambled
  1523. text between the two colons, leaving a line that looks like this:
  1524.  
  1525. root::10266:0:::::
  1526.  
  1527. Save the file and reboot the machine, and you'll be able to log in as
  1528. root without a password.  The first thing you should do is set a new
  1529. password for root, especially if your machine is connected to a network.
  1530.  
  1531.  
  1532. Here are some pointers on avoiding weak passwords:
  1533.  
  1534. 1. Never use your name (or anyone's name), birthdate, license plate,
  1535.    or anything relating to yourself as a password.  Someone trying
  1536.    to break into your machine might be able to look these things up.
  1537.  
  1538. 2. Don't use a password that is any variation of your login name.
  1539.  
  1540. 3. Do not use words from the dictionary (especially not "password" :)
  1541.    or syllables of two different words concatenated together as your
  1542.    password.  There are automated programs floating around on the net
  1543.    that can try them all in a short time.
  1544.  
  1545. 5. Do not use a number (like 123456) or a password shorter than six
  1546.    characters.
  1547.  
  1548.  
  1549. The strongest passwords are a mix of letters, numbers, and symbols.  
  1550. Here are some examples of strong passwords: 
  1551.  
  1552.      *^5g!:1?        ()lsp@@9       i8#6#1*x       ++c$!jke      *2zt/mn1
  1553.  
  1554. In practice, any password containing one or two words, a number (or two),
  1555. and a symbol (or two) should be quite secure.
  1556.  
  1557.  
  1558. 5.0  Using the Slackware CDROM Word Index
  1559.  
  1560. The Slackware CDROM is indexed so you can quickly locate files containing
  1561. any keyword.  You can access this feature from the MS-DOS view program by
  1562. using the F7 key.  Under Linux, you can use the 'utils/lookup.lin' binary
  1563. on the CDROM.
  1564.  
  1565. ----------------------------------------------------------------------
  1566. This Document Copyright 1998 Walnut Creek CDROM.
  1567.  
  1568.